
#include "hal_rtcapi.h"
#include "lldconf.h"
#include "rtc_lld.h"


static RTCAPI_Config rtcapicfg = 
{
        RTCC_CLKSEL_SIRC,
        FALSE,
        64,
        NULL,
        TRUE,
        256,
        NULL
};


void hal_rtcapi_init(rtcapi_channel_en channel ,uint32_t delay_us ,rtcapicbk cbk , enabled_en en)
{
	if(0 == RTC.RTCCNT.R)
	{
		RTCAPI_LLD_Init(&RTCAPID1, &rtcapicfg);
		RTC_LLD_Start(&RTCAPID1);
	}
}
void hal_rtcapi_enabled(rtcapi_channel_en channel ,enabled_en en)
{
	
}
void hal_rtcapi_cbk(rtcapi_channel_en channel ,rtcapicbk cbk )
{
	
}
void hal_rtcapi_iqr_config(rtcapi_channel_en channel ,INTC_PSR_PRI_t priorty , enabled_en en)
{
	
}
void hal_rtcapi_clock(rtcapi_channel_en channel ,uint32_t hz)
{
	
}
void hal_rtcapi_resetcount(void)
{
	
}
